<template>
  <div class="index">
    <div class="home_container">
        <div class="title-section">
            <h1 class="text-4xl font-bold">
                <span class="text-black">慧影AI助手 - </span>
                <span class="bg-clip-text text-transparent bg-gradient-to-r from-[#67eb94] to-[#3bb2f5]">智能创作平台</span>
            </h1>
            <div class="decorative-elements">
                <span class="deco-circle bg-[#67eb94] opacity-20"></span>
                <span class="deco-circle bg-[#3bb2f5] opacity-20"></span>
                <span class="deco-circle bg-[#678aeb] opacity-20"></span>
            </div>
        </div>
        <p class=" text-2xl  mt-3">
            AI剧本工厂 开启你的创作之旅
        </p>
        
        <!-- 卡片组件 - 两列布局 -->
        <div class="mt-12 grid grid-cols-1 md:grid-cols-2 gap-6">
            <!-- 卡片 -->
            <div class="bg-[url('/assets/image/bg1.png')] bg-cover bg-center rounded-xl  border border-gray-100 relative p-3 pt-10">
              <img src="/assets/image/video_file-DC3BfyIA.png" class="w-45 h-45 absolute -top-16 right-5 z-10" />
                <div class="p-5">
                    <h3 class="text-2xl font-bold text-gray-800 mb-1">AI剧本创作助手</h3>
                    <p class="text-gray-600 text-xl">智能生成高质量剧本内容，支持多种风格和类型。</p>
                    <div class="grid grid-cols-2 gap-4 mt-10">
                        <a href="/create" class="bg-white text-gray-800 py-3 rounded-lg text-xl font-normal flex justify-center items-center">
                            开始创作
                        </a>
                        <a href="/templates" class="bg-white text-gray-800 py-3 rounded-lg text-xl font-normal flex justify-center items-center">
                            查看模板
                        </a>
                    </div>
                </div>
            </div>
            <div class="bg-[url('/assets/image/bg2.png')] bg-cover bg-center rounded-xl  border border-gray-100 relative p-3 pt-10">
              <img src="/assets/image/text_file-51nwhHae.png" class="w-45 h-45 absolute -top-16 right-5 z-10" />
              <div class="p-5">
                  <h3 class="text-2xl font-bold text-gray-800 mb-1">AI剧本创作助手</h3>
                  <p class="text-gray-600 text-xl">智能生成高质量剧本内容，支持多种风格和类型。</p>
                  <div class="grid grid-cols-2 gap-4 mt-10">
                      <a href="/create" class="bg-white text-gray-800 py-3 rounded-lg text-xl font-normal flex justify-center items-center">
                          开始创作
                      </a>
                      <a href="/templates" class="bg-white text-gray-800 py-3 rounded-lg text-xl font-normal flex justify-center items-center">
                          查看模板
                      </a>
                  </div>
              </div>
          </div>
            
        </div>
        
        <!-- 底部装饰元素 -->
        <div class="bottom-decoration mt-20">
          <div class="deco-row flex justify-center gap-4">
            <span class="deco-dot bg-[#67eb94] opacity-30"></span>
            <span class="deco-dot bg-[#3bb2f5] opacity-30"></span>
            <span class="deco-dot bg-[#678aeb] opacity-30"></span>
            <span class="deco-dot bg-[#9b59b6] opacity-30"></span>
            <span class="deco-dot bg-[#67eb94] opacity-30"></span>
          </div>
          <div class="deco-row flex justify-center gap-4 mt-3">
            <span class="deco-sm-dot bg-[#678aeb] opacity-20"></span>
            <span class="deco-sm-dot bg-[#3bb2f5] opacity-20"></span>
            <span class="deco-sm-dot bg-[#67eb94] opacity-20"></span>
            <span class="deco-sm-dot bg-[#3bb2f5] opacity-20"></span>
            <span class="deco-sm-dot bg-[#678aeb] opacity-20"></span>
          </div>
        </div>
    </div>
  </div>
</template>
<script setup lang="ts"> 
</script>
<style scoped>
.home_container{
  width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
  min-height: calc(100vh - 80px);
  position: relative;
}

.title-section {
  position: relative;
  display: inline-block;
}

.decorative-elements {
  position: absolute;
  top: -10px;
  right: -100px;
  display: flex;
  gap: 10px;
}

.deco-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  animation: float 3s ease-in-out infinite;
}

.deco-circle:nth-child(2) {
  animation-delay: 1s;
}

.deco-circle:nth-child(3) {
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.1);
  }
}

/* 底部装饰样式 */
.deco-row {
  position: relative;
}

.deco-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  animation: float-slow 4s ease-in-out infinite;
}

.deco-sm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: float-slow 3s ease-in-out infinite;
}

.deco-dot:nth-child(1),
.deco-sm-dot:nth-child(1) {
  animation-delay: 0s;
}

.deco-dot:nth-child(2),
.deco-sm-dot:nth-child(2) {
  animation-delay: 0.5s;
}

.deco-dot:nth-child(3),
.deco-sm-dot:nth-child(3) {
  animation-delay: 1s;
}

.deco-dot:nth-child(4),
.deco-sm-dot:nth-child(4) {
  animation-delay: 1.5s;
}

.deco-dot:nth-child(5),
.deco-sm-dot:nth-child(5) {
  animation-delay: 2s;
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.1);
  }
}

@media (max-width: 1300px) {
  .decorative-elements {
    right: -50px;
  }
}
</style>